cask 'libreoffice-language-pack' do
  version '6.4.5'

  language 'af' do
    sha256 'e5c59d35e577cbb49ae9408d4de67ef99f7c27d946955896cde7b2eb8bfb4e4d'
    'af'
  end

  language 'am' do
    sha256 '037a2a7a356cb5eddedbe5bbd48b7b1fa2178bf8462e0c621347dd69ccc62ae8'
    'am'
  end

  language 'ar' do
    sha256 '4653485f08bea0e7c8a3c663643e57ac87501d58650241a1cd0b33f017258792'
    'ar'
  end

  language 'as' do
    sha256 'db35f789dc64a4c543f1d35263ff2b6ec1b7afdc3841e00d29c2cf2f5092886c'
    'as'
  end

  language 'be' do
    sha256 '33c0d958f16832d44502c15929475647a9b2a86b5c49aad7ed0da55b35ab2812'
    'be'
  end

  language 'bg' do
    sha256 'cd32dce8a36d59246928b03911cc086e508495a7e971ed6b27090db1e59e31ad'
    'bg'
  end

  language 'bn-IN' do
    sha256 '5e2d3e552122d0671d40ab22615a2a9e702737425b23f05604ef95b490b6e050'
    'bn-IN'
  end

  language 'bn' do
    sha256 '14b05c7c1b4ff5a971b730b0686e96d26230edbeb6c3708c63d8696e4b47a2c9'
    'bn'
  end

  language 'bo' do
    sha256 'd474e8722c31766797535c308a141b7a0ca4bcf47938da55dac891d7a7e9b9ca'
    'bo'
  end

  language 'br' do
    sha256 '9301f7f73733c14d7bde2d73361dd3d759317cffb9b697cecac30383535db33a'
    'br'
  end

  language 'bs' do
    sha256 'd104301be0a1877d6bd6a9c5f8bd12a1a9b55180a8c41ded81b2a41177f3f954'
    'bs'
  end

  language 'ca' do
    sha256 '4af22f7d1119d9b3930ab680eb277da803a4e5d0622573bfcf586fae331a954e'
    'ca'
  end

  language 'cs' do
    sha256 '137b90a20a7b96a7259fa7366e9a43ca27bc57427b16e7d02b872a6b3699a687'
    'cs'
  end

  language 'cy' do
    sha256 '046d587b7b2bb434ff4d8a71d973294a28e2f03118e82dea231efeb794bd27ab'
    'cy'
  end

  language 'da' do
    sha256 '53648a30f5c991ddd684ebbfc5fb286b547322e20ab43ec5b7a5b5c31ab4ca1b'
    'da'
  end

  language 'de' do
    sha256 'c4c19e163fb44b18517cf82c9ed3c7e368372a4aca4fa17537ad1520e478c885'
    'de'
  end

  language 'dz' do
    sha256 '945aa5dc096e72d1f99b21e138d0d23f446f390c7b28dd2aebf8b2cde325f78f'
    'dz'
  end

  language 'el' do
    sha256 'f1a2e47c9ba72000bbd511f97296c575eff7ed20c45750fa24481b367583f789'
    'el'
  end

  language 'en-GB', default: true do
    sha256 '9a1ddeba04b8a2a87ca94e1566edf4427466fcb3b3024d8ed9e22773e050a094'
    'en-GB'
  end

  language 'en-ZA' do
    sha256 '4be8c7c30d17c52e8061fb228a11e0fcb6291eca48bf11db266ab16ccbbca9d0'
    'en-ZA'
  end

  language 'eo' do
    sha256 'cfff3bd921ef52205d82b726b6c36d8e1685d918a017960a83c61770b6a7c808'
    'eo'
  end

  language 'es' do
    sha256 'ebc515f4861139596331e5ddb5fd6cdc4fb8286f45d59147ea98cb41e383390b'
    'es'
  end

  language 'et' do
    sha256 'd3643761e07a7baefbf986626dc3480c95cd6a352c1f8459f9d9fd5d8b2b95d6'
    'et'
  end

  language 'eu' do
    sha256 '829dcfbb4b40b18f49405a06737776be7b9a5920b066292154be8619e7b5cf84'
    'eu'
  end

  language 'fa' do
    sha256 '0bd41d28e37eed56726e292d0d32b801569255d2432dc0c082174f2f03c74850'
    'fa'
  end

  language 'fi' do
    sha256 '9540a930a6576657bcbed0fa39dd0033dc72852c3b867a8a2552a77b952ca549'
    'fi'
  end

  language 'fr' do
    sha256 '4135c75d7b2708088f616b89439924671e320c9ef1341f59a4f1e53d2bd0b651'
    'fr'
  end

  language 'fy' do
    sha256 'd52aac46d63620a03ad7b7c4f77a4d3981ee78f5346501996ba0d68d24e689bf'
    'fy'
  end

  language 'ga' do
    sha256 '8784193fbc604bdc07894d9723fc6082442462a7226da43c454ae87e141fb621'
    'ga'
  end

  language 'gd' do
    sha256 '7b970bf89cd3d896bdbb06516bf49398d6ef273d8e390866abd8548c9044f44e'
    'gd'
  end

  language 'gl' do
    sha256 '6ffa31118dd8b50f5d027ccc97e4d4a11f16b12441c29d9c506fb503e8d8f688'
    'gl'
  end

  language 'gu' do
    sha256 'a7f190ab566b8a49b61ccaa4e1893445479593ab342426bf4b629e29d20e3709'
    'gu'
  end

  language 'he' do
    sha256 '851a0403e48b58b90e2044c798281bf670b228e842b0db5bd34d60924520aee1'
    'he'
  end

  language 'hi' do
    sha256 '055cc88a707f1fc5fdf8da40843ecc619d7a19db4a3db7dee5b3d4bedcfd3d7e'
    'hi'
  end

  language 'hr' do
    sha256 '960ff8331c370ebc1e43d3445960743f9e7c1659ad2ac5e1cd92c8bd028b0168'
    'hr'
  end

  language 'hu' do
    sha256 '3ae353ba26bf1c94562217443fb39f280e3e69eeca228c1859bd856555a1d917'
    'hu'
  end

  language 'id' do
    sha256 '87dc1385d05993e98bb642140f4f531d202906a6df2e9ee9005622376f69b1e8'
    'id'
  end

  language 'is' do
    sha256 '4da9560d8044c1ab0d48bb8a59c724c00adf29da2e05bad6f8b814cf2db180e9'
    'is'
  end

  language 'it' do
    sha256 '3987dee84499321949bb0329b409e8221baaacd98f1e9c52197efb1af6ece7fa'
    'it'
  end

  language 'ja' do
    sha256 '527f905f503e156c18cbea7b66c89243b2ce5d90ed170b4cee6b2b39a2e31f81'
    'ja'
  end

  language 'ka' do
    sha256 'fedd2471e4b94f0a74d92d6bc83dc6588702fd0bbfbe4b2e9ef12cd92b48af8b'
    'ka'
  end

  language 'kk' do
    sha256 '3915efecfa54f5969192479e28fb177b088b1a8dc8d8e17e572fe69da648f525'
    'kk'
  end

  language 'km' do
    sha256 'a6e87456f36899b4c4cf0345d128a7e0ae55e888cbd88070c3e01c0e85cbcaba'
    'km'
  end

  language 'kn' do
    sha256 'e74467cb647610e45963c7a0849e4c573bd394e527cdbf8cbbfde025d43cf2b3'
    'kn'
  end

  language 'ko' do
    sha256 '73e64c06b99adb44a4c70450edad0457462cc34f247389bb877c1a41186a586d'
    'ko'
  end

  language 'ks' do
    sha256 'b3dd4fee9f6b9516f7f06e7c38dba67824459b605226852e349f06924c089a00'
    'ks'
  end

  language 'lb' do
    sha256 '9589f577af616957628b4f6f0d2f3530ffb8d531bcd4e191e22d17786e12f94b'
    'lb'
  end

  language 'lo' do
    sha256 'b88065836c02d21ae28fe30a5fffd96cbcf27a7d867df088073bf2a28ea92f87'
    'lo'
  end

  language 'lt' do
    sha256 '1e2838b4ab26394294b67cf89414719b64ee453c6da6324c16f04f421d286b08'
    'lt'
  end

  language 'lv' do
    sha256 'e34969c3d82a31bce52de2e75396edc6b4137e2b6299c4a2c578b418d6fb1617'
    'lv'
  end

  language 'mk' do
    sha256 '165af78dda096b8b7789c083ca08d83ddd7c30c4423a5a977e512aa6cbd0c935'
    'mk'
  end

  language 'ml' do
    sha256 '3670509d4325f5f29f7c215162b83e5269ee876adab424c2de2303772260fa66'
    'ml'
  end

  language 'mn' do
    sha256 '7b7378d6a9c739ed09abd1b164e5deebac5f2b3ef6eb5ff8114a2e64ee8b6a66'
    'mn'
  end

  language 'mr' do
    sha256 '33b743973a5207e9b901a1d073445044ae4ab8602dd45cc42bbde4f4874eeeaa'
    'mr'
  end

  language 'my' do
    sha256 'e9e8ea44287631b81b034645bda6b8eee76721d1d875cf853fced67c7f64a902'
    'my'
  end

  language 'nb' do
    sha256 'd3f628dd4f8f3cc392c3fc4146d2b17e2e9e2d459c83e3646d90191e60b68350'
    'nb'
  end

  language 'ne' do
    sha256 'b1dc2b1d2a2870d5d8c9bb21e63f3e8bd914df246af83c40758018daf104395b'
    'ne'
  end

  language 'nl' do
    sha256 '34ac39976c52ea41bd7275f37e6c78775b72f8de6185c7f4e68001166d4e8e16'
    'nl'
  end

  language 'nn' do
    sha256 '33921e397aafa84d98e16bafb9a927fd2948e4f361aa39b5c6944504d1b053ea'
    'nn'
  end

  language 'nr' do
    sha256 'd53825e360fb8bb56a4ea1a1d34af9a3227d95bc58d13884dc0f44178e551431'
    'nr'
  end

  language 'oc' do
    sha256 '1862592eb14cac59ae4a76cfe79d8166a2bb834503f755f521d15d489c2aa541'
    'oc'
  end

  language 'om' do
    sha256 'df6300b10777776db05f93a4b0e18a3df92d213913aa0513ad71c3a630dcfc9d'
    'om'
  end

  language 'or' do
    sha256 '92e0c4b9fe5b817567433545769e1b9bc032cebd5329a3520022d0b03103de48'
    'or'
  end

  language 'pa-IN' do
    sha256 '458de8ee63110a7e942c2d265713ab2aa6294537cd2b81bf47d36ac8a105977f'
    'pa-IN'
  end

  language 'pl' do
    sha256 '61f3370cd99b0df59450a43657eae686f4c5ba574ef5fc04b43f577146edf314'
    'pl'
  end

  language 'pt-BR' do
    sha256 '893a6c380fe110770d0cc8b8b29bbadff39e62d23f495b553d34187f787443b2'
    'pt-BR'
  end

  language 'pt' do
    sha256 '73af110c37dc5e275fd355a3cebcb1ee549648e39784a060e9072581541a1e56'
    'pt'
  end

  language 'ro' do
    sha256 'f7726aeff3f31094ecc60d45696e7a9ea1d0339f046b67b723634fc463ef0723'
    'ro'
  end

  language 'ru' do
    sha256 'b6d935e89b86797df366b18ca71b63e797bae3fd89d48a2d10a5b68c62bb7573'
    'ru'
  end

  language 'rw' do
    sha256 '50451075a924b69a8fdd197cdc8c1be3d8984d1d17e40241f04db2c6b6eb7dc1'
    'rw'
  end

  language 'sa-IN' do
    sha256 '826b188af5d1f90c0b7e9cfe79853dead0eef66f01987ac0a33f9cec0fb2a905'
    'sa-IN'
  end

  language 'sd' do
    sha256 'dacaeb7d7c85405ccabbf8da8cf24141074a49cd2781e09c2e07e93ae8cf5d19'
    'sd'
  end

  language 'si' do
    sha256 'fcb620775bf8ac2474fdfe4c26273c7064445fee1d496b522777c4e5d9ea1bc8'
    'si'
  end

  language 'sk' do
    sha256 '9644cad80aba5d6811dbff2ff94f649578e79e03ac53fcc0952d30cae425de67'
    'sk'
  end

  language 'sl' do
    sha256 'ac0eb4cb9feaa96f12bfaf18303f367865e9b06bc666546bd5d1641c7d8b57b0'
    'sl'
  end

  language 'sq' do
    sha256 '105ada43ce637cca2cbde4e8a241086f9acadffa8fcf44bbd4a025a1c34879a2'
    'sq'
  end

  language 'sr' do
    sha256 '6b75aaf46be6fdc053e417c15276e43a1c90c8db41071ede46daebf1a510b0d6'
    'sr'
  end

  language 'ss' do
    sha256 '5f1eb79e62ce17110915158e9d2d743ec4bc7dafac99105c8665c741a97ac191'
    'ss'
  end

  language 'st' do
    sha256 'baea20cc46f51df9402226a433c707f753554d468a9239d9caea718e026d4d0a'
    'st'
  end

  language 'sv' do
    sha256 'c7828a6627db579b6b0429368e69171c11c44bd610cea65b6057c6252c42fa45'
    'sv'
  end

  language 'sw-TZ' do
    sha256 '3c844d0b23745a5eb76af4cdf10a52e6f7e4b14b04af0970897384c8211bd5d9'
    'sw-TZ'
  end

  language 'ta' do
    sha256 '7d0c2c0ded244fcc02fcfef8c8bd53612fbc49ed39902dd355c1f89793d75eaf'
    'ta'
  end

  language 'te' do
    sha256 'd11e5957db7c9f7d4c6468d944ce48a8e1b1492b4cb6589dd0d38417269ab555'
    'te'
  end

  language 'tg' do
    sha256 'fb4a94fd46d7ac453e26dff8820e636a61ed2cf5486b76e84f6f59cf327927ca'
    'tg'
  end

  language 'th' do
    sha256 '14d23f26d7ffc21871f6837e0cd6c3578f89cdaf363ef75d2706a67e90c1bd03'
    'th'
  end

  language 'tn' do
    sha256 '248681843ce3bc05f8c1e6698179ce4139070e17d952e62c92c0461d4d51d4a2'
    'tn'
  end

  language 'tr' do
    sha256 '270bbe3f3826ec289aaf42d5c19617c78820cdfc4abdb771c0181ff39a650c6d'
    'tr'
  end

  language 'ts' do
    sha256 '3112ad9d44ad5aa6299e59a18ced4f45f3e31316f417947d4cf9dcb3eb0d4ec9'
    'ts'
  end

  language 'tt' do
    sha256 '752a8c7c63a557328d257b101670489f8a7c84d81700c2644be63be68b6db90a'
    'tt'
  end

  language 'ug' do
    sha256 'bb996ea8cf6203407424b278933c41b41ec535883d4271ca844f4794ddff1fed'
    'ug'
  end

  language 'uk' do
    sha256 '868f86db565d81a6b02f7e29bda59c12a464c1407a9386ed05ed29affad12719'
    'uk'
  end

  language 'uz' do
    sha256 '4912f94df54c584320f57974c9b2c3ba776b699af49ee100e4864098942c9c09'
    'uz'
  end

  language 've' do
    sha256 '01152d0de5de7c425a9236ba01260e4b0aa6c1a997916350b0182c56e45cb776'
    've'
  end

  language 'vi' do
    sha256 'ed51aea48f5be8ecefccf6b67cfd8274dbe614b122336834ab65edd9e13111cb'
    'vi'
  end

  language 'xh' do
    sha256 'ed14a77b2dcf35a993e0bccc29044f894eefbbfe6941086a8690ce0bddff5f29'
    'xh'
  end

  language 'zh-CN' do
    sha256 '1d1f8676b03b685748779c30db52f531db48f67a69509110604d1081f9224fdc'
    'zh-CN'
  end

  language 'zh-TW' do
    sha256 '5171a374a40a0c894137d214c3e261efb1c7bad75fb41707c23ce3a497cd58f2'
    'zh-TW'
  end

  language 'zu' do
    sha256 '4223ae6543df6ff228d63df24d312ae8e0f1f2f72fb7c0f07dd904f129dcefde'
    'zu'
  end

  # documentfoundation.org/ was verified as official when first introduced to the cask
  url "https://download.documentfoundation.org/libreoffice/stable/#{version}/mac/x86_64/LibreOffice_#{version}_MacOS_x86-64_langpack_#{language}.dmg"
  appcast 'https://download.documentfoundation.org/libreoffice/stable/'
  name 'LibreOffice Language Pack'
  homepage 'https://www.libreoffice.org/'

  depends_on cask: 'libreoffice'

  installer manual: 'LibreOffice Language Pack.app'

  # Not actually necessary, since it would be deleted anyway.
  # It is present to make clear an uninstall was not forgotten
  # and that for this cask it is indeed this simple.
  # See https://github.com/Homebrew/homebrew-cask/pull/52893
  uninstall delete: "#{staged_path}/#{token}"

  caveats <<~EOS
    You need to run LibreOffice at least once before installing
    language pack to avoid app verification error.
  EOS
end
